package top.tangyh.lamp.care.vo.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@Schema(description = "部门实体")
public class DeptSmallDto implements Serializable {

    @Schema(description = "部门ID",example = "1")
    private Long id;

    @Schema(description = "部门名称")
    private String name;

    @Schema(description = "部门编码")
    private String deptCode;

    public DeptSmallDto(Long id, String name,String deptCode) {
        this.id = id;
        this.name = name;
        this.deptCode = deptCode;
    }
}